www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/protected/modules/admin/views/friendlink/list.php

    <?php echo CHtml::form(CHtml::normalizeUrl(url('admin/friendlink/update')), 'post', array('name'=>'theform'));?>
<table border="0" cellspacing="1" cellpadding="0" width="100%" class="list-tbl">
	<tr>
		<th width="30">启用</th>
		<th width="50">顺序</th>
		<th width="150">网站名称</th>
		<th width="210">网址</th>
		<th width="210">Logo</th>
		<th>描述</th>
	</tr>
<?php 
	if (count($links) > 0):
	foreach ($links as $l):?>
	<tr>
		<td class="ac state"><?php echo l(CHtml::image(bu('resource/admin/images/state' . $l->isvalid . '.gif')), url('admin/ajax/friendlinkvalid', array('fid'=>$l->id)), array('class'=>'changestate'));?></td>
		<td><?php echo CHtml::textField("order_id[{$l->id}]", $l->order_id, array('class'=>'txt txt-order'));?></td>
		<td><?php echo CHtml::textField("name[{$l->id}]", $l->name, array('class'=>'txt'));?></td>
		<td><?php echo CHtml::textField("homepage[{$l->id}]", $l->homepage, array('class'=>'txt url-txt'));?></td>
		<td><?php echo CHtml::textField("logo[{$l->id}]", $l->logo, array('class'=>'txt url-txt'));?></td>
		<td><?php echo CHtml::textField("desc[{$l->id}]", $l->desc, array('class'=>'txt'));?></td>
	</tr>
	<?php endforeach; endif;?>
</table>
<?php if (count($links) > 0):?>
<div class="btnblock">
<?php echo CHtml::submitButton('更新友情链接', array('class'=>'btn'));?>
</div>
<?php endif;?>
<?php echo CHtml::endForm();?>

<?php echo CHtml::scriptFile(bu('resource/admin/js/admincp.js'));?>
<script type="text/javascript">
/*<![CDATA[*/
$(function(){
	$('.delete').click(deleteCategory);
	$('.list-tbl tr').mouseover(trMouseOver);
	$('.list-tbl tr').mouseout(trMouseOut);
	$('.list-tbl td.state').mouseover(trMouseOver);
	$('.list-tbl td.state').mouseout(trMouseOut);
	$('.changestate').click(changeState);
});
/*]]>*/
</script>